//
// C/C++ call back trace.
// Created by lmliang.
//

#ifndef __BACKTRACE_BACKTRACE_H__
#define __BACKTRACE_BACKTRACE_H__

#ifdef __cplusplus
extern "C" {
#endif

// call back function of trace.
typedef void(*backtrace_handler)(const char* msg);

// register event for exception signal. returns 0 on success and -1 on error.
extern int init_sig_action(backtrace_handler handler);

#ifdef __cplusplus
};
#endif

#endif //__BACKTRACE_BACKTRACE_H__
